package com.scb.dev.mms.dao;



import java.util.List;

import com.scb.dev.mms.pojo.Department;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DepartmentMapper {
    /**  
	 * Title: deleteByDepartmentId  
	 * Description: 
	 * Param: departmentId
	 * RrturnType: int(0:fail 1:success)
	 */
    int deleteByDepartmentId(String departmentId);


    /**  
	 * Title: insertSelective  
	 * Description: 
	 * Param: department
	 * RrturnType: int
	 */
    int insertSelective(Department department);

    /**  
	 * Title: selectByDepartmentId  
	 * Description: 
	 * Param: departmentId
	 * Rrturn Type:Department
	 */
    Department selectByDepartmentId(String departmentId);

    /**  
	 * Title: updateByDepartmentIdSelective  
	 * Description: 
	 * Param: department
	 * RrturnType: int(0:fail  1:success)
	 */
    int updateByDepartmentIdSelective(Department department);
    
    
    /**  
	 * Title: selectDepartmentNameByPrimaryKey  
	 * Description: return departmentName by departmentId
	 * Param: departmentId
	 * RrturnType: String
	 */
    String selectDepartmentNameByPrimaryKey(String departmentId);
    
    /**  
	 * @Title: selectAllDepartment  
	 * @Description: query all department order by departmentName
	 * @Param: 
	 * @RrturnType: List<Department>
	 */
    List<Department> selectAllDepartment();


}